package com.guigu.eduservice.service;

import com.github.pagehelper.PageInfo;
import com.guigu.eduservice.entity.Equipment;
import com.guigu.eduservice.entity.PurchaseDemand;
import com.baomidou.mybatisplus.extension.service.IService;
import com.guigu.eduservice.vo.EquipmentVo;
import com.guigu.eduservice.vo.PurchaseDemandDto;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * <p>
 * 求购信息表（存储买家发布的二手机械求购需求） 服务类
 * </p>
 *
 * @author Xiaosong
 * @since 2025-10-10
 */
public interface PurchaseDemandService extends IService<PurchaseDemand> {
//查询最新四条求购信息
    List<PurchaseDemand> getNewPurchaseDemand();
    //分页条件查询
    PageInfo<PurchaseDemand> queryPurchaseDemandPage(@PathVariable Integer pageNo,
                                           @PathVariable Integer pageSize,
                                           @RequestBody PurchaseDemandDto vo);
}
